package com.jj.annotatiion;


import java.lang.reflect.Method;

//自定义注解hhh
public class zdyzj {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException {

        Class cls = Class.forName("com.jj.conterllor.UserLoginController");
        Method method = cls.getMethod("t1");
        Role role = method.getAnnotation(Role.class);
        String value = role.value();
        System.out.println(value);
    }
}
